const mongoose = require("./db");

const userSchema = new mongoose.Schema({
    userId: {type:String},
    username: {type:String},
    password: {type:String},
    power: {type:Number},
    hobby: {type:Array},
    tel: {type:String},
    avatar: {type:String},
    birthday: {type:Number},
    regTime: {type:Number},
    lastLoginTime: {type:Array}
});

const user = mongoose.model("user", userSchema);
module.exports = user;
